package org.jeecg.modules.tls.blog.article.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: blog_article
 * @Author: jeecg-boot
 * @Date:   2023-01-06
 * @Version: V1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("blog_article")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="blog_article对象", description="blog_article")
public class BlogArticle implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键，文章表id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键，文章表id")
    private String id;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
	/**文章内容*/
	@Excel(name = "文章内容", width = 15)
    @ApiModelProperty(value = "文章内容")
    private String content;
	/**文章摘要*/
	@Excel(name = "文章摘要", width = 15)
    @ApiModelProperty(value = "文章摘要")
    private String summary;
	/**所属分类id，一个文章一个分类*/
	@Excel(name = "所属分类id，一个文章一个分类", width = 15)
    @ApiModelProperty(value = "所属分类id，一个文章一个分类")
    private String categoryId;

//    @TableField(exist = false)
//    private String name;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**内容图*/
	@Excel(name = "内容图", width = 15)
    @ApiModelProperty(value = "内容图")
    private String coverImg;
	/**封面图*/
	@Excel(name = "封面图", width = 15)
    @ApiModelProperty(value = "封面图")
    private String topImg;

    /**用户id*/
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String userId;
    /**租户Id*/
    @Excel(name = "租户Id", width = 15)
    @ApiModelProperty(value = "租户Id")
    private java.lang.String tenantId;

    public void removeById(String id) {
    }

}
